//
//  LMNavigationViewController.m
//  彩票
//
//  Created by 张青花 on 15/9/21.
//  Copyright (c) 2015年 李明. All rights reserved.
//

#import "LMNavigationViewController.h"

@interface LMNavigationViewController ()

@end

@implementation LMNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
}

+ (void)initialize
{
    UINavigationBar *bar =[UINavigationBar appearance];
    [bar setBackgroundImage:[UIImage imageNamed:@"NavBar64"] forBarMetrics:UIBarMetricsDefault];
    
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
    NSDictionary *dic = @{
                          NSForegroundColorAttributeName:[UIColor whiteColor],
                          NSFontAttributeName:[UIFont systemFontOfSize:24]
                          };
    [bar setTitleTextAttributes:dic];
    
    
    bar.tintColor = [UIColor whiteColor];
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    
    
    [item setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:18]} forState:UIControlStateNormal];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    viewController.hidesBottomBarWhenPushed = YES;
    return [super pushViewController:viewController animated:animated];
}


@end
